import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

import * as Api from './util/api.js';
import * as Common from './util/common.js';
import * as Db from './util/db.js';
import * as Config from './util/config.js';
import store from './store'

Vue.prototype.$api = Api;
Vue.prototype.$comm = Common;
Vue.prototype.$db = Db;
Vue.prototype.$config = Config;
Vue.prototype.$store = store

App.mpType = 'app'

Vue.filter('orderStateText', (val) => {
	console.log(val)
	let str = '已过期'
	switch (val) {
		case '0':
			str = '已过期'
			break;
		case '1':
			str = '预约中'
			break;
		case '2':
			str = '进行中'
			break;
		case '3':
			str = '已完成'
			break;
		default:
			break;
	}
	return str
})

const app = new Vue({
	...App
})
app.$mount()
